package com.yjx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjx.dto.LoginUser;
import com.yjx.pojo.User;
import com.yjx.util.Result;

import java.util.Map;

public interface UserService extends IService<User>{

    LoginUser login(String usernameOrEmail, String password);
    Result<String> createUser(String userName, String userEmail, String userPassWordHash);

    Map<String, Object> getAllUsers(Integer userId, String searchKeyword, Integer pageNum, Integer pageSize, String sortField, String sortOrder);

    Result<String> updateUser(User user);

    int deleteUserByUserId(Integer userId);
}
